package com.yf.exam.modules.trainingarchives.file.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value="文件保存DTO", description="文件保存参数")
public class FileDTO {

    @ApiModelProperty(value = "外键: 培训班信息")
    @NotBlank(message = "培训班信息id不能为空！")
    private String trainingClassInfoId;

    @ApiModelProperty(value = "文件类型")
    @NotBlank(message = "文件类型不能为空！")
    private String fileType;

    @ApiModelProperty(value = "上传文件内容", required=true)
    @NotNull(message = "文件类型不能为空！")
    private MultipartFile file;
}
